package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 order_sale
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class OrderSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 商品订单id(多个之间逗号隔开) */
    @Excel(name = "商品订单id(多个之间逗号隔开)")
    private String orderListId;

    /** 转卖价格 */
    @Excel(name = "转卖价格")
    private BigDecimal money;

    /** 状态：1 转卖中 2 被占用购买 3 已售出  4已取消 */
    @Excel(name = "状态：1 转卖中 2 被占用购买 3 已售出  4已取消")
    private Integer status;

    /** 商品订单信息（序列化） */
    @Excel(name = "商品订单信息", readConverterExp = "序=列化")
    private String orderListInfo;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long addtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderListId(String orderListId) 
    {
        this.orderListId = orderListId;
    }

    public String getOrderListId() 
    {
        return orderListId;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setOrderListInfo(String orderListInfo) 
    {
        this.orderListInfo = orderListInfo;
    }

    public String getOrderListInfo() 
    {
        return orderListInfo;
    }
    public void setAddtime(Long addtime) 
    {
        this.addtime = addtime;
    }

    public Long getAddtime() 
    {
        return addtime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("userId", getUserId())
            .append("orderListId", getOrderListId())
            .append("money", getMoney())
            .append("status", getStatus())
            .append("orderListInfo", getOrderListInfo())
            .append("addtime", getAddtime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
